package org.ioflow.events
{
	import flash.events.Event;
	
	import org.ioflow.IOflow;

	public final class MessageEvent extends Event
	{
		public static const TYPE:String = "org.ioflow.events.MessageEvent.TYPE";
		
		private var m_client:IOflow;
		private var m_message:Object;
		
		public function MessageEvent(Client:IOflow, Message:Object)
		{
			super(TYPE);
			m_client = Client;
			m_message = Message;
		}
		
		public function get message():Object
		{
			return m_message;
		}
		
		public function get client():IOflow	
		{
			return m_client;
		}
		
		override public function clone():Event
		{
			return new MessageEvent(m_client, m_message);
		}
	}
}